package com.caoustc.okhttplib.okhttp

import okhttp3.MediaType
import java.io.File

class FileWrapper(var file: File, mediaType: MediaType?) {
    var mediaType: MediaType?
    val fileSize: Long
    var fileName:String?
        get() {
            return field ?:"nofilename"
        }

    init {
        fileName = file.name
        this.mediaType = mediaType
        fileSize = file.length()
    }
}